From: Karel Zak Date: Mon, 24 Oct 2022 07:57:07 +0000 (+0200) Subject: [PATCH 08/24] fdisk: fix --output option parsing X-Git-Tag: archive/raspbian/2.40.2-8+rpi1~1^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2~22 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22file:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22file:/?a=commitdiff_plain;h=e3db25ecebff9e5ea4086e184431637c284ae234;p=util-linux.git [PATCH 08/24] fdisk: fix --output option parsing Fixes: https://github.com/util-linux/util-linux/issues/1859 Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022249 Signed-off-by: Karel Zak Gbp-Pq: Topic upstream Gbp-Pq: Name 0008-fdisk-fix-output-option-parsing.patch --- diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 2bd2ef4..79b904f 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -928,7 +928,7 @@ int main(int argc, char **argv) { "type", required_argument, NULL, 't' }, { "units", optional_argument, NULL, 'u' }, { "version", no_argument, NULL, 'V' }, - { "output", no_argument, NULL, 'o' }, + { "output", required_argument, NULL, 'o' }, { "protect-boot", no_argument, NULL, 'B' }, { "wipe", required_argument, NULL, 'w' }, { "wipe-partitions",required_argument, NULL, 'W' },